package com.qiniu;

import com.qiniu.api.auth.AuthException;
import com.qiniu.api.io.IoApi;
import com.qiniu.api.io.PutExtra;
import com.qiniu.api.io.PutRet;
import org.json.JSONException;

/**
 * Created by Administrator on 2014-06-06.
 */
public class UploadFile {

    public static String putFile(String fileName,String filePath) throws AuthException, JSONException {
        PutRet ret = IoApi.putFile(Uptoken.getUpToken(), fileName, filePath, new PutExtra());
        return ret.getResponse();
    }


}
